import { RouteView } from '../layouts'

export default [{
  path: '/menu',
  component: () => import('../views/menu/MenuList.vue'),
  meta: { title: '菜单管理', keepAlive: true },
  children: [{
    path: '/menu/edit',
    component: () => import('../views/menu/MenuEdit.vue'),
    meta: { title: '修改', code: 'edit' }
  }, {
    meta: { title: '新增', code: 'add' }
  }, {
    meta: { title: '删除', code: 'delete' }
  }]
}, {
  path: '/role',
  component: () => import('../views/role/RoleList.vue'),
  meta: { title: '角色管理', keepAlive: true },
  children: [{
    path: '/role/edit',
    component: () => import('../views/role/RoleEdit'),
    meta: { title: '修改', code: 'edit' }
  }, {
    path: '/role/impower',
    component: () => import('../views/role/RoleImpower'),
    meta: { title: '授权', code: 'impower' }
  }, {
    path: '/role/dataImpower',
    component: () => import('../views/role/DataImpower'),
    meta: { title: '数据授权', code: 'dataImpower' }
  }, {
    path: '/role/add',
    component: () => import('../views/role/RoleEdit.vue'),
    meta: { title: '新增', code: 'add' }
  }, {
    meta: { title: '删除', code: 'delete' }
  }]
}, {
  path: '/role/class',
  component: () => import('../views/role/RoleClass.vue'),
  meta: { title: '角色分类', keepAlive: true },
  children: [{
    meta: { title: '新增', code: 'add' }
  }, {
    meta: { title: '编辑', code: 'edit' }
  }, {
    meta: { title: '删除', code: 'delete' }
  }]
}, {
  path: '/setting',
  component: () => import('../views/setting/SettingEdit.vue'),
  meta: { title: '系统设置', keepAlive: true }
}, {
  path: '/log',
  component: () => import('../views/log/LogList.vue'),
  meta: { title: '日志管理', keepAlive: true }
},
{
  path: '/eslog',
  component: () => import('../views/log/LogEsList.vue'),
  meta: { title: 'ES日志', keepAlive: true }
},
{
  path: '/dictionary',
  component: () => import('../views/dictionary/DictionaryList.vue'),
  meta: { title: '字典管理', keepAlive: true },
  children: [{
    path: '/dictionary/edit',
    component: () => import('../views/dictionary/DictionaryEdit.vue'),
    meta: { title: '编辑', code: 'edit' }
  }, {
    meta: { title: '新增', code: 'add' }
  }, {
    meta: { title: '删除', code: 'delete' }
  }]
}, {
  path: '/help',
  component: () => import('../views/help/HelpList.vue'),
  meta: { title: '系统帮助', keepAlive: true },
  children: [{
    path: '/help/edit',
    component: () => import('../views/help/HelpEdit.vue'),
    meta: { title: '编辑', code: 'edit' }
  }, {
    meta: { title: '新增', code: 'add' }
  }]
}, {
  path: '/businessline',
  component: () => import('../views/businessline/businessline.vue'),
  meta: { title: '业务线条', keepAlive: true },
  children: [
    {
      path: '/businessline/add',
      component: () => import('../views/businessline/businesslineAdd.vue'),
      meta: { title: '新增', code: 'add' }
    },
    {
      path: '/businessline/update',
      component: () => import('../views/businessline/businesslineAdd.vue'),
      meta: { title: '编辑', code: 'update' }
    },
    {
      meta: { title: '删除', code: 'delete' }
    },
    {
      meta: { title: '查询', code: 'showlist' }
    }
  ]
}]